package jia.game;

import javax.swing.*;
import javax.swing.border.LineBorder;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: stelle
 * Date: Jan 18, 2006
 * Time: 12:22:51 PM
 * To change this template use File | Settings | File Templates.
 */
public class UiScroller extends JScrollPane {
    
    public UiScroller(Component component, int i, int i1) {
        super(component, i, i1);
        initPanel();
    }
    
    public UiScroller(Component component) {
        super(component);
        initPanel();
    }
    
    public UiScroller(int i, int i1) {
        super(i, i1);
        initPanel();
    }
    
    public UiScroller() {
        super();
        initPanel();
    }
    
    private void initPanel(){
        this.setVisible(true);
        this.setWheelScrollingEnabled(true);
        this.setFocusable(false);
        this.setBackground(ComponentUtils.getGlobalBackgroundColor());
        this.setOpaque(false);
        this.setBorder(new LineBorder(ComponentUtils.getGlobalLineColor(), 1));
        
        
    }
    
}
